package com.idrl.dao.po;

import org.apache.commons.lang.builder.ToStringBuilder;

public class MessageInfo 
{
	private int code;
	
	private String info;
	
	
	public MessageInfo() {
	}

	public MessageInfo(String info) {
		this.info = info;
	}

	public MessageInfo(int code) {
		this.code = code;
	}

	public MessageInfo(int code, String info) {
		this.code = code;
		this.info = info;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
	
	/**
     * 调用ToStringBuilder进行反射属性。
     */
    public String toString()
    { 
        return ToStringBuilder.reflectionToString(this);        
    }
}
